/**
  * @(#) HibernateDao.java  
  *
  * @author lihg 
  * @version V1.0 2013-10-5  
  *
  * Copyright (C) 2010,2013 , Lihg
  */

/**
 * 
 */
package cn.com.dshome.acquisition.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.hibernate.criterion.DetachedCriteria;

/**
 * 
 * Purpose:
 * 
 * @author lihg 
 * @see	    
 * @since
 */
public interface HibernateDao {
	
	public <T > Serializable save(T entity) ;
	
	public <T > void update(T entity) ;
	
	public <T > List<T> listAll(Class<T> clazz) ;
	
	public <T> List<T> listByDetachedCriteria(DetachedCriteria criteria ) ;
	
	public <T> List<T> listByHQL(String hql,Map<String,Object>params) ;
	
	public <T> T get(Class<T> clazz,Serializable id) ;
}


/**
 * Revision history
 * -------------------------------------------------------------------------
 * 
 * Date Author Note
 * -------------------------------------------------------------------------
 * 2013-10-5 下午01:24:21 lihg 创建版本
 */